package com.cakebackoffice.database;


public class Menu_has_Product extends DatabaseTable {
    public static final String TABLESNAME = "Menu_has_Product";
    public static final String ID = "_id";
    public static final String ID_MENU = "idMenu";
    public static final String ID_PRODUCT = "idProduct";

    public static final String[] ALLFIELDS = new String[]{
            ID,
            ID_MENU,
            ID_PRODUCT

    };

    public static final String CREATE = "CREATE TABLE " + TABLESNAME
            + " ( "
            + ID + " INTEGER PRIMARY KEY AUTOINCREMENT , "
            + ID_MENU + " INTEGER , "
            + ID_PRODUCT + " INTEGER ); ";


    private static DatabaseTable ourInstance = new Menu_has_Product();


    @Override
    public String getTableName() {
        return TABLESNAME;
    }

    @Override
    public String[] getAllFields() {
        return ALLFIELDS;
    }

    @Override
    public String getCreate() {
        return CREATE;
    }

    public static DatabaseTable getInstance() {
        return ourInstance;
    }

    private Menu_has_Product() {
    }
}
